package com.jy.show.service.impl;

import com.jy.show.bean.Province;
import com.jy.show.dao.PatienceMapper;
import com.jy.show.service.PatienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PatienceServiceImpl implements PatienceService {

    @Autowired
    private PatienceMapper patienceMapper;

    @Override
    public int insertProvince(Province province) {
        return patienceMapper.insertProvince(province);
    }

    @Override
    public List<Province> queryAllPatience() {
        return patienceMapper.queryAllPatience();
    }

    @Override
    public int updatePatience(Province province) {
        return patienceMapper.updatePatience(province);
    }

    @Override
    public int deleteProvince(int id) {
        return patienceMapper.deleteProvince(id);
    }

    @Override
    public List<Province> ExcelExport(List<Integer> id) {
        return patienceMapper.excelExport(id);
    }

    @Override
    public Province getPatience(Integer id) {
        return patienceMapper.getPatience(id);
    }

}
